import { resolve } from 'path'
import { loadEnv, defineConfig } from 'vite'
import Vue from '@vitejs/plugin-vue'

export default ({ command, mode }) => {
  return {
    base: '/',
    plugins: [
      Vue({
        script: {
          // 开启defineModel
          defineModel: true
        }
      }),
    ],
    server: {
      port: 5090,
    }
  }
}